File Manager (High Level)
About Asynchronous I/O
Searching All Directories On An HFS Volume
System 7.0 Topics
Access Files
FSOpen Open the data fork of an existing file FSWrite Write data from memory to a file GetFPos Obtain position of the file mark of an open file SetFPos Position file mark for random-access read/ write GetEOF Obtain the size of an open file (logical EOF) SetEOF Increase or decrease the logical size of a file Allocate Increase the physical size of an open file Create/Delete Files
Create Create a new empty file (both forks) FSDelete Delete an unopened file or empty directory Rename Change the name of a file or directory GetFInfo Obtain file type, creator, icon position, etc. SetFInfo Change file type, creator, icon position, etc. RstFLock Unlock a file (allow changes, deletion, renaming, etc.) SetFLock Lock a file (prevent changes, deletion, renaming, etc.) Access Volumes
GetVInfo Get volume name, reference number and free bytes GetVRefNum Get volume reference number of an open file GetVol Obtain name and reference number of default volume SetVol Select a new default volume or working directory FlushVol Update disk with any unwritten data UnmountVol Flush volume, close its files, release its memory Eject Eject a volume from its drive Resource fork operations
OpenRF Open the resource fork of an existing file File system queues
GetDrvQHdr Obtain pointer to the drive queue header GetFSQHdr Obtain pointer to the file I/O queue header GetVCBQHdr Obtain pointer to the volume control block queue header Other High Level Calls
CatMove Transfer file or directory to another directory on the same CloseWD Close and release a working directory GetWDInfo Query information about an existing working directory HCreate Create a new file like PBHCreate and set type and creator HDelete Delete an unopened file or empty directory HGetFInfo Obtain file type, creator, icon position, etc. HGetVol Obtain default volume/directory name and reference HOpen Open the data fork of a file HOpenRF Open the resource fork of an existing file HRename Rename a file, volume, or directory HRstFLock Unlock a file (allow changes, deletion, renaming, etc.) HSetFInfo Change file type, creator, icon position, etc. HSetFLock Lock a file (prevent changes, deletion, renaming, etc.) HSetVol Select a default default volume/directory (HFS only) RstFLock Unlock a file (allow changes, deletion, renaming, etc.) FSpEx changeFiles Swap the files' data
FSpOpenDF Create an access path to the data fork of a file FSpOpenRF Create an access path to the resource fork of a file FSpCreate Create a new file and set the type and creator HOpenDF Create an access path to the data fork of a file OpenDF Create an access path to the data fork of a file